package NsingCHM.Files;

/** 
 XML ��ժҪ˵����
*/
public class XML
{
	public XML()
	{
	}
	/** 
	 ��ȡXmlName�����ݷ���DataTable
	 
	 @param XmlName Xml�ļ���
	 @return 
	*/
	public final DataTable GetXmlDataTable(String XmlName)
	{
		FileStream fs = new FileStream(System.Web.HttpContext.Current.Server.MapPath(XmlName),FileMode.Open,FileAccess.Read);
		StreamReader sr = new StreamReader(fs);
		DataSet ds = new DataSet();
		ds.ReadXml(sr);
		return ds.Tables[0];
	}
}